package com.awonsome.mall.pms.pojo.vo.app;

import lombok.Data;

import java.util.List;

/**
 * @author yangdejun
 * @date 2022/1/30 22:31
 */
@Data
public class GoodsDetailVO {

    private GoodsInfo goodsInfo;

    private List<Attribute> attributeList;

    private List<Specification> specList;

    private List<Sku> skuList;

    @Data
    public static class GoodsInfo {

        private Long id;

        private String name;

        private Long originPrice;

        private Long price;

        private Integer sales;

        private List<String> album;

        private String detail;

    }

    @Data
    public static class Attribute {

        private Long id;

        private String name;

        private String value;

    }

    @Data
    public static class Specification {

        private String name;

        private List<Value> values;

        public static class Value {

            private Long id;

            private String value;

        }
    }

    @Data
    public static class Sku {

        private Long id;

        private String name;

        private String specIds;

        private Long price;

        private Integer stock;

        private String picUrl;

    }
}
